Please can someone help me simplfy this formula

=if(B9>0, B9+1, if(B8>0, B8+1, if(B7>0, B7+1....ect