add set count method