Students of class VII went to a picnic and spent Rs 96 on snacks. Since four of them skipped the picnic, the remaining students had to contribute Rs 2 extra. The number of students attending the picnic was: