Two trains, one coming towards and another going away from an observer both at $4 \mathrm{~m} / \mathrm{s}$ produce a whistle simultaneously of frequency $300 \mathrm{~Hz}$. The number of beats heard by observer will be (velocity of sound = $340 \mathrm{~m} / \mathrm{s}$ )
(A) 5
(B) 6
(C) 7
(D) 12