reduced the Samples.index() to getting just the row count