Here we are passing back a nodelist full of node objects, but we have already called domModel.releaseFromread(), so instead this method should just count the elements length and return the length as a integer so it is safe to call releaseFromRead()