protected function calculateActionCount()
    {
        $counter = 0;
        foreach ($this->actions as $actions) {
            $counter += count($actions);
        }

        return $counter;
    }
protected function calculateActionCount()
    {
        $counter = 0;
        foreach ($this->actions as $actions) {
            $counter += count($actions);
        }

        return $counter;
    }
protected function calculateActionCount ( ) { $ counter = 0 ; foreach ( $ this -> actions as $ actions ) { $ counter += count ( $ actions ) ; } return $ counter ; }
Returns the total number of actions in all groups

@return int
Returns the total number of actions in all groups