Statistics for Stability and gravitational collapse in extended theories of gravity: from singularities to bouncing scenarios