Hotfix for ngTable pagination for angularjs v1.0

Count the number of the columns in the table because columns.length is
always returning 0
Merge pull request #2 from ifeelgoods/feature/fix_for_counting_the_columns_of_the_table_when_using_angular1.0

Hotfix for ngTable pagination for angularjs v1.0