Count the frequence of items