Intelligent vision counting machine