You might need to call `reload` on `cookbook` but beyond that it should just update the counter it's using `counter_cache` to keep track of the number of associations.