blog post on counting nest arrays in mongodb