A dimension formula for relative symplectic field theory