Simple physics-based predictor for the number of river bars and the transition between meandering and braiding