From VBA, you could do something like this:
Debug.Print Selection.Rows.Count
Debug.Print Selection.Columns.Count
Debug.Print Selection.Row
Debug.Print Selection.Column
With A1:G8 selected, this returns
8
7
1
1
Is that easily translated to Python>