Fix counting methods defined on explicit target