Counting elements cleaned up