Prueba esto:
Código sql:
Ver originalSELECT
(SELECT COUNT(horario) FROM tabla WHERE horario = 'mañana') manana,
(SELECT COUNT(horario) FROM tabla WHERE horario = 'tarde') tarde,
(SELECT COUNT(horario) FROM tabla WHERE horario = 'noche') noche
FROM tabla LIMIT 1;
Un saludo.