M is a girl and has the same number of brothers as sisters. N is a boy and has twice as many sisters as brothers. M and N are the children of Q. How many children does Q have?