count number of special characters in a string python