Quick update to counts and error logging in search.
To get explicit information about what caused the exception.