6 posts simplifies things. A double 2x10 band on the front and back, with the posts notched to accept the outside band, will carry to load. 2x8s would probably be sufficient but I tend to overframe, especially when I’m building pole barns or shelters. 2x12 rafters on 24”, 36”, or 48” will work...