added an admin endpoint to give error count