Automatic Counting of Microscopic Particles