Three-dimensional collective charge excitations in electron-doped copper oxide superconductors