Added CountViewDBAdapter following the given schema