ImageJ application perceives cells as background. It counts the particles in the background. How can I change this? I change it from the file invert section but it didn't work.
Not sure on how to do it in ImageJ but we have a piece of software specifically designed for automated cell counting operations that might interpret the image in the "correct" manner and allows you to easily invert the image or the measurements (i.e. signal becomes background or background becomes signal)
You can get a free trial of the software from here: https://totallab.com/products/phoretix-colony-counter/
When Thresholding the image (Image > Adjust > Threshold) select in the threshold window from the right dropdown menu "Red". Now everything that is red in the image is selected. If the background is selected use the tick box "Dark background" and the foreground (your cells) should be selected.