Get the number of columns in the proxied data model
a DataProxy object
the number of columns, or -1 if an error occurred