Count Different Characters In String Python Definition