Answer
The answer is seven. Walton Goggins portrayed the character of Shane Vendrell, a detective in the Farmington district of Los Angeles, throughout the entirety of the series, which spanned seven seasons. Goggins' portrayal of the morally complex and often conflicted character was widely acclaimed by critics and audiences alike, solidifying his status as a versatile and talented actor.