Example of Trivy output plugin
trivy plugin install github.com/aquasecurity/trivy-plugin-count
trivy <target> --format json --output plugin=count [--output-plugin-arg plugin_flags] <target_name>
OR
trivy <target> -f json <target_name> | trivy count [plugin_flags]
trivy image -f json -o plugin=count --output-plugin-arg "--published-after=2023-11-01" debian:12
is equivalent to:
trivy image -f json debian:12 | trivy count --published-after=2023-11-01