Automatic Capsule Counting Machine