Election of Prime Minister

What are the qualifications for being PM?  How many parties (political) are there?