When can I know the gender of the baby?

Te
I am 16th week pregnant. When can I know the gender of the baby?