public function count(string $needle) : int
    {
        return substr_count(strtolower($this->getText()), strtolower($needle));
    }
public function count(string $needle) : int
    {
        return substr_count(strtolower($this->getText()), strtolower($needle));
    }
public function count ( string $ needle ) : int { return substr_count ( strtolower ( $ this -> getText ( ) ) , strtolower ( $ needle ) ) ; }
Performs a case insensitive search for the needle
@param string $needle
@return int
Performs a case insensitive search for the needle