hm.. this looks ugly. How about `Iterables.size(hooks.iterate())` from Guava (we can add it to the test scope)?