worm counting application