count 1s in 1 to N