title: How to count objects in an image using K-Means matlab
body: <p>I want to count how many peanuts there are in this picture using image segmentation K-MEANS ,
  does anyone know how to go about this?</p>
  
  <p><img src="https://i.stack.imgur.com/lC4eX.jpg" alt="peanutzzzz"></p>