First COUNT works, SparqlAlgebraToDatalog fixed