corrected a bug in the way the total number of rows was calculated. the total should be the number of rows returned by the query, not the number included in the view