added ace_count method