Keep AI counter ahead of manually specified AI field values.

This resolves #28.