Crew III, J.P.
On May 3, 1999, defendant broke into the home of Ian Neish and stabbed him repeatedly in both the back and chest resulting in grievous injury. Thereafter, on May 26, 1999, defendant brutally murdered Francisco Rosa in Central Park, in the City and County of Schenectady, by repeatedly stabbing and thereafter beating him with the stock of a BB gun. As a consequence, defendant was charged in a 22-count indictment with, inter alia, the crimes of murder in the second degree and attempted murder in the second degree. He thereafter pleaded guilty to all counts of the indictment except the second count and, in doing so, waived his right to appeal. Defendant was sentenced to an aggregate prison term of 48 years to life.
Initially, we note that defendant's argument that he was denied the effective assistance of counsel has been waived by his knowing, intelligent and voluntary guilty plea (see, People v. Corwin, 137 A.D.2d 872, 873, lv denied 71 N.Y.2d 1025). To be sure, as defendant contends, a waiver of appeal will not foreclose a challenge to the competency of counsel where the claimed ineffectiveness induced the otherwise knowing and voluntary guilty plea (see, People v. Ferguson, 192 A.D.2d 800, lv denied 82 N.Y.2d 717), but the record reveals no basis upon which to believe that such was the case here. Quite to the contrary, given the overwhelming evidence of defendant's guilt, pleading guilty, with the hope of avoiding a maximum sentence, certainly was a reasonable course of action. Finally, defendant's contention that his sentence was harsh and excessive is encompassed by his waiver of his right to appeal. Accordingly, the judgment of conviction is affirmed.
Peters, Spain, Rose and Lahtinen, JJ., concur.
ORDERED that the judgment is affirmed.