countDocuments() added to BackendController & DocumentDAO