Python Pandas Count Number Of Columns In Dataframe Object Has No Attribute