Get distinct counts for errors