--- /dev/null
+#!/usr/bin/perl -w
+
+# $Id: irspy-stats.pl,v 1.1 2006-12-14 17:35:13 mike Exp $
+#
+# perl -I ../lib irspy-stats.pl localhost:3313/IR-Explain---1
+
+use strict;
+use warnings;
+use ZOOM::IRSpy;
+
+if (@ARGV > 2) {
+ print STDERR "Usage: $0 [CQL-query]\n";
+ exit 1;
+}
+
+my($dbname, $query) = @ARGV;
+my $stats = new ZOOM::IRSpy::Stats($dbname, $query);
+use Data::Dumper;
+print Dumper($stats);
--- /dev/null
+%# $Id: stats.mc,v 1.1 2006-12-14 17:35:44 mike Exp $
+<%doc>
+Here are the headings in the Z-Spy version:
+ The ten most commonly supported Bib-1 Use attributes
+ Record syntax support by database
+ Explain support
+ Z39.50 Protocol Services Support
+ Z39.50 Server Atlas
+ Top Domains
+ Implementation
+You can see his version live at
+ http://targettest.indexdata.com/stat.php
+Or a static local copy at ../../../archive/stats.html
+
+There may be way to generate some of this information by cleverly
+couched searchges, but it would still be necessary to trawl the
+records in order to find all the results, so we just take the path of
+least resistance and look at all the records by hand.
+</%doc>
+<%perl>
+my $stats = new ZOOM::IRSpy::Stats("localhost:3313/IR-Explain---1");
+use Data::Dumper;
+print "<pre>", xml_encode(Dumper($stats)), "</pre>\n";
+</%perl>