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