Mass is best defined as a measure of: