Issue #5366 done for RM-214. Fix count in sidebar