doc: added example call for retrieving actual stats

Also aligned example code with described data structure: renamed 'example' to 'something'.