(Maint) Do not try to cound objects on ruby 1.8

ObjectSpace.count_objects only exists on 1.9 or greater (in fact 1.9.2
or greater, but be only support 1.9.3). This makes the test for this
functionality pending on ruby 1.8 so that we can have the functionality,
but not test it where it can't work.