Expected Behavior of Bisection Based Methods for Counting and Computing the Roots of a Function