Auto-connect for submitting commands. Add get_counts command.