Added count-by-values utility