moved ``count" into adt