Karan's marks were incorrectly entered as 83 instead of 63. Due to that the average marks for the class got increased by 12. The number of pupils in the class is:
40
By increasing 20 marks, the average of the class increases by 12. Thus, the number of pupils in the class is 40.