count() isn't smart enough to do conditional logic, so you need to put your try-hard hat on and do it upstream.
Severity="Error" | eval Exception=if(isnotnull(ExceptionType),"1",null()) | eval Error=if(isnull(ExceptionType),"1",null()) | stats count(Exception) as Exception, count(Error) as Error by Application, Version
... View more