This function retrieves the number of metadata name and value tuples in the specified name-value record.