NFHS makes technical foul administration simple: every technical foul counts towards the bonus. The NFHS rule book has a summary of technical foul penalites and illustrates which ones also count against players or direct/indirect against the head coach.
NOTE: In NCAA-M, I believe that administrative techicals still do not count towards the bonus. (I believe NCAA-W now matches NFHS). However, it's been a few years since I've been involved at the college level, so this might have changed.
I can't speak for FIBA, but technical fouls in the NBA do not count toward the team foul count at all.