Define function numBs(s) that produces the number of b's in string s. For example, numBs("bob") = 2. Only count lower case b's.

(Hint. Use a loop. Look at each character. Keep a count of the number of b's.

 

    [Language: Java  Kind: function definition]