Get the number of rows in the proxied data model
a DataProxy object
the number of rows, or -1 if the number of rows is not known