Total bonus count implementation added.