get post counts from given date range