Derive IDs, count the coordinates (in nibelung.h)