Python Pandas Count Number Of Rows Formula