#!/bin/bash

image=$1

count1=`bazel query "somepath(//data/ingest/docker_images:${image}, //base/git:git_build_info_py)" | wc -l`
count2=`bazel query "somepath(//data/ingest/docker_images:${image}, //base/git:git_build_info)" | wc -l`

exit $(( $count1 + $count2 ))
