GENERALIZED HILBERT–KUNZ FUNCTION IN GRADED DIMENSION 2