Cache heap elements count