I have a two dimensional array and I want to count the number of columns. I'm using handsontable to create this array, so I have this array :

I tried sizeof()
and count()
but it return the number of rows, what I want is just the number of columns.
Can someone help me please ?