Fixed count_occ