adding a simple counter endpoint