Closure issuses in Counting Data function
modified