select count(*) from dotlrn_users where dotlrn_users.type = :type