Fix bug introduced in r176616 when making function identifier numbers stable.
Count the subprograms, not the compile units.