Updated countBy entry