Count values in array of objects

wow that’s way more complex than I expected. Going to be tricky to “translate” this for the Golang driver. Thanks :slight_smile: