Maximum Function Count Python String Contains Only Numbers