get num of items at runtime