Getting a products view count programmatically (Magento 1)

Use the below code to figure out, how often a product was called in between 2 dates:

Getting selected custom options of a cart item (Magento 1)

Use the below code to figure out what custom option was selected by the customer for a cart item: