Input: {
    count?: integer;
    onlyCertainMatches?: boolean;
    resource: Resource;
}