To answer this you will need to find out how many quarts there are in 5 gallons. You can use the conversion of 4 quarts in 1 gallon to find out how many quarts there are in 5 gallons.
4 qts/1 gal = 20 qts/5 gal
Here will need to fill the container 20 times to fill the aquarium.