add count for db model