Count Characters In A String In Python