Instead of applying the stars-and-bars formula immediately, let's build up the count by reasoning about how many values the exponent of \( z \) can take, and for each such value, how many terms remain, then sum over all cases.
In each term \( (2x)^a(3y)^b(5z)^c \) with \( a+b+c=5 \), fix \( c \) (the power of \( z \)) at each possible value from \( 0 \) to \( 5 \). For a fixed \( c \), we need \( a+b = 5-c \) with \( a,b\ge0 \), which has \( 5-c+1 = 6-c \) solutions. Summing over \( c=0,1,\dots,5 \): \[ \sum_{c=0}^{5}(6-c) = 6+5+4+3+2+1 = 21. \]
Summing the term counts over each fixed power of \( z \) reproduces the stars-and-bars total.
Therefore, the correct answer is 21.