At the table computation

Swiss teams (8 is Enough), IMPs converted to 30 point scale, 6-board matches.

South
AJ1054
AKQJ10653
W
N
E
S
P
1
P
1
P
2
P
2
P
2NT
P
6
P
P
P

My RHO bid this beauty as shown, essentially guessing North had a heart honor. My teammate settled for 5 after a similar start. Feel free to suggest how South should bid (4, perhaps), but my question concerns how to make an educated guess -- how would you estimate (at the table) the odds North has the K or Q after this natural sequence? There appears to be a trade-off between the opening bid values (12 of the outstanding 25 hcp) and the 6+ clubs versus at most 3 hearts. One scheme: 5 of the 25 hcp are in hearts, so 20% of partner's points rate to be in hearts, 20%*12 = 2.4, so partner rates to hold at least 2 points in hearts a clear majority of the time. But that ignores the relative lengths.

Note: I did not make this a bidding poll since I am interested in the process, not what to do with this specific hand -- I might well have bid 6 at my first opportunity :)