Code for making the badge count update and badge tab width adjustment.

refs #31129