added schema to Count()