title: counting specific elements in array C++
body: <p>I have an array of <code>[2,3,4,3,4,5,6,3]</code> now I want to know how many 3's are there in an array. Is there any short cut to do it rather than going through the loop and checking each element?</p>