I think `itemsCounter` should be initialized dynamically depending on the children count of `htmlPanel`