re-added countDocuments() to BackendController & Document DAO