The rshift (val count) function