add counter to 'show formats' (issue #5001)