Suppose there are $n$ students in a given course, and on a particular exam each student can receive an integer grade from $0$ to $100$. If the class average on the exam is exactly $60$, then how many different grade distributions are there for the students in the course?
What we are really doing is counting the solutions to a restricted Diophantine equation:
$$
s_1+s_2+\cdots+s_n=n\cdot60 \quad \text{with all } s_i\in[0,100]
$$
In the case $n=1$, there is clearly only one solution. In the case $n=2$, we will have $81$ solutions, and for $n\geq 3$ it becomes clear that there are difficult counting problems involved that yield some rather large numbers.
Thankfully, this problem has been well studied; what we are really doing is counting lattice points in some high dimensional polytope, which can be accomplished with Ehrhart polynomials. In particular, this post has an answer that demonstrates how you may go about computing the answer you seek!