Returns the total number of records in the grid.

Example:

var count = getObj("Grid1").grid.getRecordCount();