I need to count no of services in docker-compose.yaml file, i.e with out apply it, like filtering yaml file using yq or any other method in Linux.
for example my file is
services:
service-1:
image: image2
service-2:
image: image
service-3:
image: image
service-4:
image: image
ports:
- "80:80"
I want output like services count is 4 and name of each service