result.append("<revisions>").append(repository.getVersionCount() - repository.getResourceCount()).append("</revisions>");
q = new SearchQueryImpl(site).withTypes(Page.TYPE).withPreferredVersion(Resource.LIVE);
result.append("<pages>").append(repository.find(q).getDocumentCount()).append("</pages>");
q = new SearchQueryImpl(site).withTypes(FileResource.TYPE).withPreferredVersion(Resource.LIVE);
result.append("<files>").append(repository.find(q).getDocumentCount()).append("</files>");
q = new SearchQueryImpl(site).withTypes(ImageResource.TYPE).withPreferredVersion(Resource.LIVE);
result.append("<images>").append(repository.find(q).getDocumentCount()).append("</images>");
q = new SearchQueryImpl(site).withTypes(MovieResource.TYPE).withPreferredVersion(Resource.LIVE);
result.append("<movies>").append(repository.find(q).getDocumentCount()).append("</movies>");
} catch (ContentRepositoryException e) {