Sean Dyche celebrated his ninth year in charge of Burnley with a 3-1 win over Brentford, their first Premier League victory of the season.