public static int GetPostCountByDate(IAgilityContentRepository <AgilityContentItem> posts, DateTime month) { string filter = BlogUtils.GetSqlBetweenMonthRangeStatement("Date", month); return(GetPostCount(posts, filter)); }