title: Groovy: Check if text contains a string more than one time
body: <p>I want to check if the word <code>"test"</code> appears more than 1 time in the logs.
  The following code just checks if the word <code>'test'</code> appears more than 0 times in the string. (it just checks if the logs contain the word).</p>
  
  <pre><code> if (env.logs.contains('test')) {
        xxx
  }
  </code></pre>
  
  <p>What do I have to change to let this part of code check for more than one appearances of the word <code>test</code>?</p>