Re: Writing a counter function