diff --git a/PgnParser.php b/PgnParser.php index 3dc16fc..4d5a5db 100755 --- a/PgnParser.php +++ b/PgnParser.php @@ -131,6 +131,11 @@ class PgnParser return $this->pgnGames; } + + public function countGames(){ + $games = $this->getUnparsedGames(); + return count($games); + } public function getCleanPgn(){ return $this->cleanPgn($this->pgnContent);