Former Middletown treasurer and town manager Rebecca Louise Layman pleaded guilty Wednesday in Frederick County Circuit Court to eight felony counts of embezzling from the town.