Add function tocount directory