add object counts and object sizes for each type.