works for counter