counting parser