Hi, I know that PLY lex is able to do line counting. I am wondering if there is a way to count the number of each keywords (tokens) in a given file? For example, how many IF tokens etc? Thanks Maurice