If you want to know the visible rows/nodes count, there is a simplest way is to request the FlyGridViewPort.RowCount property:
[c#]
private int GetFilteredNodeCount(FlyGrid flyGrid, NodeBase node)
{
return flyGrid.ActivePort.RowCount;//when you don't use nesting
/*-------OR-------*/
//we need to get the viewport associated with the node
FlyGridViewPort port = flyGrid.GetPort(node);
return (port != null) ? port.RowCount : 0;
}