Revert "Add OptimizationCount to UserData."

This reverts commit 2c1231a1d54b36b4e928f1d1543a01a0a6476e77.
Revert "Revert "Add OptimizationCount to UserData.""

This reverts commit bc171d244d66592f61e91ad5fc1b5abf6b97a804.