In page : $206$ of the following electronic textbook : https://scholar.harvard.edu/files/joeharris/files/000-final-3264.pdf , the author says that the Hilbert function of $ S_X $ is : $$ \mathrm{dim} \ ( S_X )_d = \begin{pmatrix} n+d \\ n \end{pmatrix} - \begin{pmatrix} n+d-s \\ n \end{pmatrix} $$ with, $ X $ is any hypersurface of degree $s$ in $ \mathbb{P}^n $.
Can you explain to me please, what is $ S_X $, and how do we obtain this formula above ?
Thanks in advance for your help.