Python Code:

num_rows = subset.shape[0] 

print("Number of rows in the subset:", num_rows)