Rewrite the enumerator using case statements for an 8% speed boost
Read the number of rows from the metadata