Counting man&#39;s hand isolated on white background, count four