Implement initial parser statistics (fixes #27)