update controller code to collect the number of zht messages