Let $S$ be a set of real numbers with mean $M$. If the means of the sets $S \cup \{15\}$ and $S \cup \{15, 1\}$ are $M + 2$ and $M + 1$, respectively, then how many elements does $S$ have?

Let's think step by step and output the final answer within \boxed{}.
user