counting punctuation in a given text
问题 I have a text file with a huge text written in forms of paragraphs. I need to count certain pieces of punctuation: , and ; from that text without using any module, not even regex . In addition, my program also needs to count ' and - , but only under certain circumstances. Specifically, it should count ' marks, but only when they appear as apostrophes surrounded by letters, i.e. indicating a contraction such as "shouldn't" or "won't" . (Apostrophe is being included as an indication of more