Bug #3
Upgrade:
- bit count and sync generation are in separate process.
- replace the std_vector type for bit_count to integer : more easy to deal with, and also to avoid conversions.