function charCount

The function is working. I used a methods and a property of strings