Finished implementation of the compute-LPU-Count function generator

This is a major step toward furnishing the runtime library for managing
LPUs of different spaces.