Getindexstats 1442

Ready to merge. Reviewed and received LGTM from Mathias.