1. Importing the picture and changing color representation from RGB to HSV.
2. Going through filters of different colors to create masks.
3. Counting contours with given area on every mask, drawing them on RGB picture and displaying number of objects in each color.
Disclaimer: pictures of the objects were provided by university and that's why I haven't uploaded them.