title: How to get count of similar numbers in array
body: <p>Let's imagine that we have a C without any libraries (embeded world). I would like to know some good implementation to get count of majority numbers in array which are close to each other around defined offset.
  Example (offset +/- 10):</p>
  
  <pre><code>array(1, 5, 9, 50, 2, 54, 3, 1, 58, 59, 56, 54, 48, 2), result 7
  array(1, 5, 4, 8, 60, 500, 200, 7, 2, 4, 1, 2, 4), result 10 
  </code></pre>