Fix nanopub counting