R: R: Sql Counter reads only the first 4 digits