title: How to count a $link posted by a $nick in $chat more than 2 times?
body: <p>I'm trying to do a count of a <code>$link</code> posted in <code>$chat</code> by a <code>$nick</code> more than 2 times or more or equal of 3 times to then call for a function of ban.</p>
  
  <p>I've tried <code>if (count(explode($link, $chat, $nick))&gt;=3) {</code> which i know is not true but i'm out of options and i'm still at the beginning of PHP learning.</p>
  
  <p>Thanks in advance</p>