public function count()
    {
        if ($this->getWalkFlag() & self::WALK_X) {
            return $this->countX();
        } elseif ($this->getWalkFlag() & self::WALK_Y) {
            return $this->countY();
        } else {
            return $this->countXY();
        }
    }
public function count()
    {
        if ($this->getWalkFlag() & self::WALK_X) {
            return $this->countX();
        } elseif ($this->getWalkFlag() & self::WALK_Y) {
            return $this->countY();
        } else {
            return $this->countXY();
        }
    }
public function count ( ) { if ( $ this -> getWalkFlag ( ) & self :: WALK_X ) { return $ this -> countX ( ) ; } elseif ( $ this -> getWalkFlag ( ) & self :: WALK_Y ) { return $ this -> countY ( ) ; } else { return $ this -> countXY ( ) ; } }
Count the number of values according to matrix's flag value

@return  int
@see     self::countX()
@see     self::countY()
@see     self::countXY()
Count the number of values according to matrix s flag value