The longitudinal rebars are placed in order to resist the flexural tensile stresses that appear along the beam axis while stirrups are used to carry the diagonal tensile stresses caused by shear. Moreover, stirrups help in the critical areas confinement.
The number placed in front of the beam b1 indicates the floor that this beam belongs to. In this case, it is the number 0 which corresponds to the ground floor.