Maximum Function Count Python String To Integer