Returns every object in the world matching the given vnum. If you just want to know how many of something there are (a common use) you can say
length(obj_in_world(1000))