Count Frequency Of Characters In String Python Replace