Let R be a set of nine distinct integers. Six of the elements of the set are 5, 6, 7, 9, 12, and 17. What is the number of possible values of the median of R?
4
5
6
7
8