declare
v_class_id classes.class_id%type:=:class_id;
x integer;
begin
select count(*) into x from enrollments 
where class_id=v_class_id;
dbms_output.put_line('the number of students from the class with the id: '||v_class_id||' is: '||x);
end;