A local pet shelter recorded the number of dogs adopted each month for six months. The data collected is as follows:
12, 14, 18, 10, 20, 16
Based on this information, what is the median number of dogs adopted over the six-month period?