#JC-1494 Changed COUNT_POSTS_TOPICS_VIEW to work with the date instead of post indexes