Fix off by by one

Width of signal 'count' is 30 bits, not 31.