Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE employee ( sex VARCHAR, salary INTEGER )

### Question ###
Find the number of employees of each gender whose salary is lower than 50000.

### Accurate SQL ###

SELECT COUNT(*), sex FROM employee WHERE salary < 50000 GROUP BY sex