more Number of Ones, Predict the Number

Haskell, Python2