Extracts statistics from a set of metadata records.