API for getting notification count