FORT PIERCE — A Port St. Lucie mother of two young daughters who was facing 20 counts stemming from sex acts with a teen boy was sentenced this week to four years in prison in a negotiated plea agreement.

Rebecca McGraw, 39, who was living in the 1900 block of Southeast Hillmoor Drive in Port St. Lucie until her arrest in May 2017, pleaded no contest to one count of sexual activity with a minor and one count of transmission of material harmful to a minor by electronic equipment.

Eighteen other counts of sexual activity with a minor were dropped in exchange for her plea.

McGraw, who had no prior criminal record, could have faced what amounted to a life sentence if convicted on all counts.

After McGraw is released from prison, Circuit Judge Dan Vaughn also ordered that she serve 10 years of sexual offender probation, which requires counseling, drug and alcohol testing, and no contact with minors without court permission.

McGraw’s two school-age daughters were taken from her by the state Department of Children and Families and placed with a family member who has temporary custody.

Defense attorney Joshua Deckard of Stuart said because McGraw has already served more than a year while waiting for her case to be resolved, and with gain time for good behavior, she could be released in about 2½ years.

On the advice of her attorney, McGraw did not make a statement before sentencing. Neither the victim, who was 15 at the time, nor his family attended the hearing.