index = df.index number_of_rows = len(index)
>>> df[df['LastName'] == 'Smith'].index Int64Index([1], dtype='int64')
number_of_rows = len(df)
len(df)