(bug 44538) using wb.utilities.buildPendingCounter() for references counter now

IMPORTANT: this change-set also depends on change-set Ibf5ebbd1 which has to be merged first!

Change-Id: Ie3a92eda14a57ad7f3a5d436aab3b9e33ac68c31