public function getNewlineCount() { preg_match_all('(\\n|\\r\\n?)', $this->lexeme, $matches, PREG_SET_ORDER); return count($matches); }