Revert "CE-486 refactoring getCount to retrive nubers directly from db instead of running function for getting notification list. Plus fix for bug with wrong counter number"

This reverts commit 71e05b03f1cf9edd040e63468356af004d06bd09.