Increment counter if document already exists

also,