Does anybody know how to use queryCount? I am filtering a non-spatial feature service cast a feature layer. How can I get the record count after the search is complete? I know I can use the length of feature layer graphic provider if the feature layer is an actual feature layer. But how can I the number of records for a non-spatial table (named yourTable)? I've tried to use queryCount but I am getting null values when I run the searchThank you so much in advance Code: private function doSearch():void { myAttributeTable.featureLayer = myFeatureLayer var defexpr:String = searchattribute + eqsymbol + "'" + qText.text + "'"; yourTable.definitionExpression = defexpr myAttributeTable.featureLayer = yourTable var query:Query = new Query(); query.where = defexpr query.returnGeometry = false; yourTable.queryCount(query, new AsyncResponder(onResult, onFault)); function onResult(count:Number, token:Object):void { var countstring:String countstring = count as String; numberofrecords.text = countstring + " records ; } function onFault(info:Object, token:Object = null):void { } } <mx:Text width="65" id="numberofrecords" text="test"/>