Pharynx pumping rate analysis in C. elegans - software and code

Hello,

I am looking for a software or code for automatically obtain the pharynx pump rate from videos of living C. elegans.

I am interested in any kind of related software or code, either is for living C. elegans, or some program which may be used in diferent kind of organisms.

You can write me in jllobet@imcab.es if you wish.

Thank you very much!

Josep