public function count()
    {
        $handle = $this->createHandle($this->getFilePath());
        $lineCount = 0;

        while (!feof($handle)) {
            $line = $this->readLine($handle, null);
            if ($line !== '') {
                ++$lineCount;
            }
        }

        fclose($handle);

        return $lineCount;
    }
public function count()
    {
        $handle = $this->createHandle($this->getFilePath());
        $lineCount = 0;

        while (!feof($handle)) {
            $line = $this->readLine($handle, null);
            if ($line !== '') {
                ++$lineCount;
            }
        }

        fclose($handle);

        return $lineCount;
    }
public function count ( ) { $ handle = $ this -> createHandle ( $ this -> getFilePath ( ) ) ; $ lineCount = 0 ; while ( ! feof ( $ handle ) ) { $ line = $ this -> readLine ( $ handle , null ) ; if ( $ line !== '' ) { ++ $ lineCount ; } } fclose ( $ handle ) ; return $ lineCount ; }
Return the amount of lines.

@return int
Return the amount of lines .