Make isBroken, countErrors and getTotalErrors static