Fix count_spec (1.7.x)

Use the appropriate arity to get Enumerable#count to handle its args correctly.  Note that we need to switch from JavaInternalBlockBody to a BlockCallback since JavaInternalBlockBody does not currently get its arguments prepared correctly for the given arity (this is fixed in master).

This does not need to be merged into master since #1230 takes care of it.