you need to create after insert trigger on employee table, in which you should write update statement for department table
update department set no_of_employees =no_of _employees+1 where dept_id=new.dept_id
then you create delete trigger
update department set no_of_employees =no_of _employees-1 where dept_id=old.dept_id
then you create update trigger
update department set no_of_employees =no_of _employees+1 where dept_id=new.dept_id
update department set no_of_employees =no_of _employees-1 where dept_id=old.dept_id