synchronized access to IDMap, added Size()