Writing a module

I want to count cells in an image whith different morphology. Is there any previously written module to use?

It’s hard to say more without a lot more information, but in general if the morphologies are pretty distinct you could either
A) Use different Identify modules on the different types of cell
B) Create an Identify module that catches all the cells then use MeasureSizeAndShape followed by either FilterObjects or ClassifyObjects
If they’re more subtle you could try
C) Identify and Measure as in B then use CellProfilerAnalyst’s Classifier to try to use machine learning to separate the two.

thanks for your kind reply. As I am a beginner, how can I write a module? I tried to start but facing with lots of errors

Have you tried CellProfiler’s Example Pipelines page?