I understand your question to be asking for the maximal size of a set of mutually commuting Pauli strings of weight $w$ and length $n$.
Two Pauli strings of length $n$ commute if and only if they don't have different non-identity entries in any slot. Thus, in a given slot the elements of a set of mutually commuting Pauli strings of length $n$ must have either the identity or one fixed non-identity matrix. Thus a set of mutually commuting Pauli strings of weight $w$ and length $n$ of maximal size is one that contains every possible choice of $w$ non-identity matrices, for which there is only one choice per slot, so the size of such a set is $\binom nw$.