Fix count by disabling shift on non-ints