count and generate 127