The stat that you want is very similar to the built-in stat "CCPF", which is "Cold Call Preflop". The only difference which you want is that the player is facing only a single raise.
To do that you can make a copy of the stat and change it.
The change you need to make is to add in a check for the opportunity to make a 3-bet - this means that they are facing the first raise.
The existing "cold call" part of the stat will do the rest.
To check for a 3-bet opportunity you use: holdem_hand_player_statistics.flg_p_3bet_opp
Have a look at the tutorial
How To: Make a New Version of a Statistic.
For instance, your new version of the cnt_p_ccall column would be this (with the bit you need to add in bold):
sum(if[holdem_hand_player_statistics.flg_p_ccall
AND holdem_hand_player_statistics.flg_p_3bet_opp, 1, 0])