get correct count for alerts - makes pagination work on homepage