Python Pandas Count Number Of Columns In Matrix