Drain rice. Heat oil in a sauce pan and saute the onions until soft and translucent. Add the rice and stir for a minute. Next add the garlic and the carrots. Stir just to combine the ingredients. Pour in the stock and soy sauce, lower heat, cover and allow to cook on low for 10 minutes.