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