RE: sql counter clarification and issues