handle count response