count number of certain characters in string python