feat(countBy): create filter
fix(filter): register countBy filter
test(countBy): create unit test