Malik took a survey to find out how many students in his school have a pet. There are 628 students in the school. 50% of them have a pet. How many students in Malik's school have a pet?