Count not need .

already in class count added 
    public function total() {
        return count($this->getThemes());
    }