db api - attempt/complete count inference