Counting Number of times a File is accessed

Hi,

 I need to count the number of times a script is accessed from within the script. Is it possible ?

Example: I have a script called lo.sh and i execute the script for the first time, then the counter variable declared inside the lo.sh should increment by 1. For every execution the counter has to be incremented by 1.

 Any help is appreciated !!!!!!!!

Try logging the count in a temporary file.
When you next access, read the count, increment and overwrite to temporary file.

Regds,
Rishi