public static int Count(this RestCall <int> call) { call.request.AddQueryParameter("$count", "true", false); call.Traverse("@odata.count"); var response = call.Execute(); return(response.Data); }