In general, the basis states of a $p$-dimensional harmonic oscillator containing a total
$$
n_1+n_2+\ldots n_p=N
$$
bosons of a single type is simply $\vert n_1n_2\ldots n_p\rangle$.
Since the number-preserving operators
$\{C_{ij}=a_i^\dagger a_j; i,j=1,\ldots,p\}$ span the Lie algebra $u(p)$, all states with $n_1+n_2+\ldots n_p=N$ are in the same $u(n)$ irrep, and the dimension is precisely
the numbers of ways you can break up $N$ in $p$ non-negative pieces. These irreps are denoted by $(N,0,0,...0_{p-2})$ in the standard mathematical literature. @Fabian provided a closed form expression for the dimension of type of irrep in his answer.
An interesting situation occurs if you allow for more than one type of bosons. For instance, one can use two types of bosons and construct (as done in this paper), $su(3)$ irreps of the type $(\lambda,\mu)$, with the second index non-zero, with $N=\lambda+2\mu$ total excitations. The dimensionality of $(\lambda,\mu)=\frac{1}{2!}(\lambda+1)(\mu+1)(\lambda+\mu+2)$.
In $su(4)$, general irreps are of the type $(\lambda,\mu,\sigma)$ and the dimension of such an irrep - which requires three types of bosons to construct - is
$$
\hbox{dim}(\lambda,\mu,\sigma)=\frac{1}{12}(1 + \lambda) (1 + \mu) (1 + \sigma) (2 + \lambda + \mu) (2 + \mu +
\sigma) (3 + \lambda + \sigma + \mu)$$.
Of course this collapses to the expected $(p+3)(p+2)(p+1)/6$ when $\mu=\sigma=0$.
A good place to look up this sort of stuff is the review paper by Richard Slansky, Group Theory for unified model building, where all kinds of dimensionalities are given.