use VALUES from SPARQL-1.1 to reduce the number of count queries that
are executed separately refs #61