maxKey + 1 - logicalKeyFields.length