Maximum Function Count Python Array Of Ones