title: How can I count ids in splunk logs in one line with regex
body: <p>I have log like:
  Segment 5bbdf7b8bbdd3c685a2110bf : UserMap is [512205885, 512112460, 512369891, 512316786, 58587803, 506882296]</p>
  
  <p>Segment 5bbdf7b8bbdd3c685a2110bf : UserMap is [514348564, 506722271, 513844106, 513725157]<br>
  Segment 5bbdfd69bbdd3c685a21129b : UserMap is [502062935]  </p>
  
  <p>I want the stats where I can see number of ids in userMap with respect to the segment. like:</p>
  
  <p>5bbdf7b8bbdd3c685a2110bf - 6</p>
  
  <p>5bbdf7b8bbdd3c685a2110bf - 4 </p>
  
  <p>5bbdfd69bbdd3c685a21129b - 1</p>