Added numEntities() method to Engine and System classes