use RS metadata to figure out number of columns