You want to count the number of ones in a string. In this example there are 3 "1"s in the string "011001"
Count Ones - Using a method
You want to Create a method to count ones in any string.
The methdos countOnes takes a
string and returns an int.