how many races have the horses bred by john campbell participated in ?
SELECT DISTINCT COUNT attr_open var_uri attr_close where brack_open var_x dbo_breeder dbr_John_Campbell,_2nd_Earl_Cawdor sep_dot var_x dbp_race var_uri brack_close