count total number of characters in a string python