ULONG
PopGetRangeCount(
  IN  PPOP_HIBER_CONTEXT HiberContext
  );

Routine Description:

    Counts the number of ranges to be written out. This includes
    the number of cloned ranges on the cloned range list and the
    number of runs in the memory map.

Arguments:

    HiberContext - Supplies the hibernation context.

Return Value:

    Number of ranges to be written out.