getNumberOfSources renamed to countSources
Using templated QueryResponse and QueryResult