Separated from my wife but had joint custody of my child and was also head of household so how do I file?

I supported my wife and stepchildren most of the year even though we were separated for five months in 2016. Does that qualify me as head of household?