A class survey found that 32 students watched television on Monday, 19 on Tuesday, and 23 on Wednesday. Of those who watched TV on only one of these days, 14 chose Monday, 4 chose Tuesday, and 6 chose Wednesday. Every student watched TV on at least one of these days, and 12 students watched TV on all three days. If 14 students watched TV on both Monday and Tuesday, how many students were there in the class?