A bit over 400. Of those, 75% of them needed to be recalled due to manufacturing issues. [1][2]
My perception is that Musk brings very capable executive-level management to his projects. Tesla was dying without strong leadership (and had a string of temporary CEOs prior to Musk).