The following options are available:
- Add variant_count: usize field
- Or use UserDataImpl and add it to trace, store variant_count in UserData
After that, the algorithms which are sensitive to trace variants count should be adjusted
When this feature is added, fix InMemoryLogsTest