You got it almost right

it is:

10 ounces make a cup, 2 cups make a pint (20 ounces), 2 pints make a quart(40 ounces), 4 quart makes a gallon, a gallon(in the U.K.) is 160 ounces. There must be some historical reason for the change.