'MongoDB Query - Count Objects/Arrays

I need some help with the following query in Mongo. I am trying to count how many items are False I have an object called "comments" inside I have arrays with the departments ("Paint", "Metal, "Assembly"....) and within the departments, I have objects. I need to count when "read"=false.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source