added counting of the attribute value occurrences