Tweaked the COUNT statement to work with Fuseki.