Wash the rice under running cold water till water runs clear.
Soak them in enough water for 20 minutes.
After soaking time, drain the water using colander or strainer. Keep it aside.
Making corn pulao recipe:
Heat the oil in a pan on medium heat. Once hot add whole spices (cloves, cinnamon stick, green cardamom, black peppercorns, mace and bay leaf). Saute for a minute or so.
Now add chopped onions. Cook till onions are soft, light pink in color.
Add ginger paste, garlic paste and green chilies. Mix and cook for a minute.
Add green peas and corn kernels. Mix well.
Add salt, garam masala and kasoori methi. Mix well and cook for a minute.
Add rice. cook for a minute.
Now add water and turn the heat on high. Bring the water to a boil.
Once it starts to boil, lower the heat to the LOWEST possible. Cover the pan with the lid and cook for exactly 17 minutes.
Then turn off the stove. Let it rest for 10 minutes without opening the lid. After resting time you can remove the lid.