sentence1: further , since the free energy is a physical quantity , f only .
sentence2: the free energy then is a generating function for the counting numbers of connected graphs that can be embedded in a compact surface with a given genus .