How do I count the number of occurrences of a char in a String?

How do I count the number of occurrences of a char in a String?

Leave a Comment