define_labels function

Define the quantity of rows and columns that contain labels