protected function addElementToCounter($classCounters, $element)
    {
        if (!isset($classCounters[get_class($element)])) {
            $classCounters[get_class($element)] = 0;
        }
        $classCounters[get_class($element)]++;

        return $classCounters;
    }