python program to count special characters in string