I am very beginner to Google scripting. Here I need to count the number of times the word "FREE" occurred in my sheet. But my function returns me an error
Error: Circular dependency detected**
(See the attached screen shot.)
What am I doing wrong and how can I fix it?
Please note: I have some merged cells here.