count amount of characters in string python