The problem is most likely this line
{case match>=3} Template functions does support operator handling for their parameters, secondly all template functions are 100% generic which means that switch/case is not a builtin template operation.
You can solve this by using the section function and some operators.
{section show=$noOfArticles|ge(3)}
... {/section}