A program has been credited with prompting both a recovery in bear numbers — although the animals are hard to count — and fewer encounters with humans.