An index theorem for Wiener-Hopf operators on the discrete quarter-plane