Modified EventAdapter so it works with the modified Counting Tree