I need to create an item counter that will count how many "+1" were created in a text document that is created if it doesn’t exist, or opens if there is one. The first part of the code I have, that is, the document is created, the "+1" is written. But what to do with the meter, I'll never know. I looked through a large number of sites, I saw different options (count, Сounter, counter (). Most_common and others). And the most frequent option is still the function Counter and count. The problem is that I seem to be missing a module that is responsible for this function, and there are problems with downloading. Therefore, the question: What other function can replace the function Counter?
+1symbols in the text and you just need to count their number? - gil9redfrom collections import Counterdoesn't work? - andreymal