When reading some but not all row groups from a file, the number of row groups is not computed correctly.