As per the question guide, please do not post images of code, data, error messages, etc. - copy or type the text into the question. Please reserve the use of images for diagrams or demonstrating rendering bugs, things that are impossible to describe accurately via text.
Use COUNT? Your question is completely unclear. Show us some consumable sample data (not an image), the expected results, your attempt(s) and explain why they aren't working. Also include the logic you want to get from your sample data to your expected results.
Considering the accepted answer, perhaps a search would have given you all the resources you needed. Learning to use a search engine is a vital life skill in this age.
COUNT? Your question is completely unclear. Show us some consumable sample data (not an image), the expected results, your attempt(s) and explain why they aren't working. Also include the logic you want to get from your sample data to your expected results.