SELECT nr_departamentu, COUNT(id_pracownika) from pracownik group BY nr_departamentu order BY COUNT(id_pracownika) limit 1;