Try Except While Loop Python Count Characters In A String