Command-line tool to count patterns in a PHP project directory