Show pending items in queue counter on dashboard

Based upon https://github.com/chfoo/wpull/pull/169