If all $(x + y + z)$ digit occurrences in your word were considered distinct, the problem would be to count the number of ways to arrange $(x + y + z)$ in a sequence, and there are $(x + y + z)!$ such ways.
If we now stopped distinguishing between different occurrences of 4, then the arrangements that differ only by rearranging the occurrences of 4 are in fact identical arrangements. So, for the arrangements in which the occurrences of 5's and 6's are still considered distinct objects, but occurrences of 4 are not, the number $(x + y + z)!$ is an overcount by a factor of $x!$. To correct for that (for failing to distinguish between different occurrences of 4), we divide by $x!$:
$(x + y + z)! / (x!)$
The latter number still needs to be corrected for failing to distinguish between occurrences of 5, and the correction factor to divide by is $y!$. Similarly for the occurrences of $6$.
Consequently, the answer must include all three corrections. It equals
$$
{(x + y + z)! \over x! y! z!},
$$
and is explained in more detail in Part III of this video:
https://www.youtube.com/watch?v=QrfA8mKOIjI