counter - first rough version