Automatically add a reference to the counter upon create or attach,
plus an extra reference if an ipckey was supplied. Version bump.