Count Different Characters In String Python Functions