[bugfix] fn:count() reports wrong dependency