How many four-digit numbers can you form with the digits 1, 2, 3, 4, 5, 6, and 7 if no digit is repeated?

How many of these four-digit numbers are odd numbers?

How many of them are even numbers?

I need help with the bolded questions. please explain, I have the answers from the textbook but I dont know how they got them.