// return
// count - the number of items of type resource the api server reports, if no error
// err - error accessing the resource, or nil if no error
// return
// count - the number of items of type resource the api server reports, if no error
// err - error accessing the resource, or nil if no error