save- and loadEntities() now returns the number of entities saved/loaded.