<% Response.End %>
<% Function CounterW()
rows=6
filename=Server.MapPath("counter.txt")
on error resume next
set fileobject=server.createobject("Scripting.filesystemobject")
set instream=fileobject.opentextfile(filename,1,false,false)
if err.number > 0 then
count=0
else
count=instream.readline
instream.close
end if
count=count+1
set outstream=fileobject.createtextfile(filename,true,false)
outstream.writeline count
outstream.close
CounterW =count
End Function %>