title: How to count number of peaks in graph ? -graph analysis-
body: <p>I have this curve that contains certain peaks - I want to know how to get the number of these peaks.</p>
  
  <p><strong>Sample Data:</strong></p>
  
  <pre><code>0.10    76792
  0.15    35578
  0.20    44675
  0.25    52723
  0.30    27099
  0.35    113931
  0.40    111043
  0.45    34312
  0.50    101947
  0.55    100824
  0.60    20546
  0.65    114430
  0.70    113764
  0.75    15713
  0.80    83133
  0.85    79754
  0.90    17420
  0.95    121094
  1.00    117346
  1.05    22841
  1.10    95095
  1.15    94999
  1.20    18986
  1.25    111226
  1.30    106640
  1.35    34781
  1.40    66356
  1.45    68706
  1.50    21247
  1.55    117604
  1.60    114268
  1.65    26292
  1.70    88486
  1.75    89841
  1.80    49863
  1.85    111938
  </code></pre>
  
  <p>The 1st column is the X values, the 2nd column is the y values. </p>
  
  <p>I want to write a macro or formula that tell me how many peaks in this graph.</p>
  
  <p>Note: this graph is actualy ploted and exported from matlab, so if there is a way i can tell my code to do it for me from matlab it would be also great!</p>