Include patchcount in REST api