Counting elements in buckets
Fixed conflict