public function getNumBlocks() : int
    {
        $total = 0;

        foreach ($this->ecBlocks as $ecBlock) {
            $total += $ecBlock->getCount();
        }

        return $total;
    }
public function getNumBlocks() : int
    {
        $total = 0;

        foreach ($this->ecBlocks as $ecBlock) {
            $total += $ecBlock->getCount();
        }

        return $total;
    }
public function getNumBlocks ( ) : int { $ total = 0 ; foreach ( $ this -> ecBlocks as $ ecBlock ) { $ total += $ ecBlock -> getCount ( ) ; } return $ total ; }
Returns the total number of EC block appearances.
Returns the total number of EC block appearances .