The two from the back are going to the bench. The two in front of them just came off and are not in the play. To me, that's not too many men.
The penalty is a technicality it doesn't matter where they are. If San Jose has posession and is making forward progress with the puck, and there's more than 6 (including goalie) guys on the ice, it's a penalty.