fix(rest): add missing deployment time criteria for deployment count

related to #CAM-2968