k get ns -o custom-columns=X:.metadata.name --no-headers | \
xargs -I {} sh -c "kubectl get ns {} -o jsonpath='{.metadata.name}' && \
printf ' ' && kubectl get pod -n {} | wc -l"
To get pods from only two namespaces:
k get pod -o wide --all-namespaces -o \
go-template='{{range .items}}{{if or (eq .metadata.namespace "das-linux-qtadata.namespace}}\
{{"\t"}}{{.metadata.name}}{{"\t"}}{{"\n"}}{{end}}{{end}}'