There are 8 fluid ounces in a cup. There are 2 cups in every pint. So every pint container can hold 16 fluid ounces of heavy cream.
If you take the total of 32 and divide it by 16 (the number of ounces a pint container can hold), you get 2 which is the number of pint containers you need to get 32 fluid ounces