What I would like to do is something like this:
var myLayer = new FeatureLayer("service url here with maybe a filter");
var count = myLayer.count;
Seems to be a basic thing to have - right? I guess not?