If you are going to be calling a function (such as count() a few times within a script, is there any performance benefit to calling it once at the beginning, storing the result in a value and then using the value instead of recalling the function each time?