Revert "Revert "Number_of_EGCs""

This reverts commit 5987820fa985c8801abc7454d80c566841a9d79e.