getNumberOfMessages

Returns the number of entries with a certain severity.