You can find the number of items by checking the data provider for the data grid:
var count:Number = (myDataGrid.dataProvider as ICollectionView).length;
In the documentation, the data sources assigned to the data provider already implement ICollectionView, and if not, they change to a class that implements ICollectionView.
source
share