command_classes.php
public function getWordCount($word)
    {
        if (is_null($this->_localWords)) {
            $this->_localWords = $this->getRawWordCounts();
        }
        return isset($this->_localWords[$word]) ? $this->_localWords[$word] : 0;
    }
public function getWordCount($word)
    {
        if (is_null($this->_localWords)) {
            $this->_localWords = $this->getRawWordCounts();
        }
        return isset($this->_localWords[$word]) ? $this->_localWords[$word] : 0;
    }
public function getWordCount ( $ word ) { if ( is_null ( $ this -> _localWords ) ) { $ this -> _localWords = $ this -> getRawWordCounts ( ) ; } return isset ( $ this -> _localWords [ $ word ] ) ? $ this -> _localWords [ $ word ] : 0 ; }
Gets the occurence count of a particular word from the original query

@param string $word
@return int
Gets the occurence count of a particular word from the original query