Bedard, Pirates set team mark with 17 Ks vs Cards