Counts the amount of punctuation characters in a parsed file.