A guidance counselor is planning schedules for 40 students. All students must take at least one of either math, English, or history. Sixteen students say they want to take math, 14 want to take English, and 15 want to take history. Five say they want to take both English and history, and of these, 2 wanted to take math as well. Eight want only history, and 10 want only math. How many students want English only?