What percentage of the time that I get three of a kind (on the flop) will another player also get three of a kind? Would it be profitable in the long run to raise on the flop and go all in if reraised with every three of a kind??

My example: I held 10h,10c raised two dollars and was called. Flop came 5d, 10s,Jc..... I raised to $4 and was reraised to $8 and I went all in. Turned out he had the pocket pair of jacks. I was fine with that as I felt I did the right thing. More times than not I felt I would win.