If five balanced dice are rolled, what is the probability that the number 1 and the number 4 will appear the same number of times?

I know that n=5, but I can't figure out what other numbers to plug into the equation. 1 can appear once and 4 can appear once, or 1 can appear twice and 4 can appear twice. Anyone know how to do this??? The answer in the book is (2424)/(6^5)

Thanks in advance!!