counting results + showing popup