#!/bin/csh -f
# Print the number of objects in the catalogs
if ($1 == ^) then
  caterr <<'EOF'

  Print the number of objects in a catalog.
    usage: objects catalog [catalog ...]
    Arguments: catalog - catalogs to extract number of objects
    Output: number of objects

'EOF'
  exit
endif
foreach i ($*)
info $i|grep Number
end
