(self, text: str)
| 8 | |
| 9 | class Counter: |
| 10 | def __init__(self, text: str) -> None: |
| 11 | self.text = text |
| 12 | |
| 13 | # Define the initial count of the lower and upper case. |
| 14 | self.count_lower = 0 |
| 15 | self.count_upper = 0 |
| 16 | self.count() |
| 17 | |
| 18 | def count(self) -> None: |
| 19 | for char in self.text: |