The average height of a group of pupils was 142.1 cm. When Mr Long measured and recorded the height of these pupils, he wrongly recorded one child's height as 194 cm when it should have been 149 cm. As a result, Mr Long calculated the average height as 147.1 cm. How many pupils were there in the group?