run("Make Composite"); Stack.setDisplayMode("grayscale"); run("Set Measurements...", "area mean integrated display redirect=None decimal=3"); run("Clear Results"); print(getTitle); setSlice(1); getRawStatistics(nPixels, mean); if (mean!=0) count(); setSlice(2); getRawStatistics(nPixels, mean); if (mean!=0) count(); function count() { start = nResults; run("Gaussian Blur...", "sigma=1 slice"); run("Subtract Background...", "rolling=10 slice"); setAutoThreshold("MaxEntropy dark"); run("Analyze Particles...", "size=30 circularity=0.00 show=Nothing display exclude slice pixel"); n = nResults-start; sumArea = 0; sumMean = 0; sumIntDen = 0; for (i=start; i