shell: removing function get_num_monitors