allow specifying phase type for tools/simple_gen.py
print counters in tools/findAinB.py