Added countBy method
Build