Color counting on an image

hi everyone. i want to count purple colored pixels in a region of interest area? how can i do that? could anyone help me please?