MB-MB-12687 MB-12304 Return the actual number of keys found