Hotfix for ngTable pagination for angularjs v1.0

Count the number of the columns in the table because columns.length is
always returning 0