From Pestalozzi’s intuition principle to classrooms: the counting frame and innovations in the teaching of mathematics (Spain, nineteenth century)