Refactor parser statistics into own method, so accessible from all code