Guide: Sift through Text with Regular Expressions

Hi.
Quick (hopefully) question.
In this challenge/lesson console show the number of found references from this and only this line:
var andCount = testString.match(expression).length;
It is happening “behind the scene” someway or am I missing something ?

Console stopped to update the number even when I just change variable (andCount) name.