Aside from a few outlying factors (time of day, trending topics, frequency of posts), content is universally king and plays the biggest role in the popularity of a Facebook status or an Instagram picture.
The NumPy module of Python provides a function called NumPy.histogram(). This function represents the frequency of the number of values that are compared with a set of values ranges.