Count was working out as double