convert date/time to seconds to overcome mongoid bug when querying a time range.
add utility to query database based on time range, sort based on count and add limit to return.