FIX: count new and unread respects muted categories (PR #10131)

countCategoryByState function should take categories muted by the user into consideration

GitHub