Incorrect Output for seating greedy


#1

How is the output of “.x.x.x…x” 5?
Should the answer not be 4?