Index Stats: Add support for segments stats
Closes #4101