code: public long count() {
  		long count = 0;
  		if (has()) {
  			try {
  				count = contentsIdDao.countOf();
  			} catch (SQLException e) {
  				throw new GeoPackageException(
  						"Failed to count contents ids. GeoPackage: "
  								+ geoPackage.getName(), e);
  			}
  		}
  		return count;
  	}
docs: Get the count of contents ids
  
  @return count