added additional configuration support for getCountByMonth