Analysis of the distribution of the brain cells of the fruit fly by an automatic cell counting algorithm