The United States has finished behind countries including Algeria and Kazakhstan in a new ranking of the best and worst countries in which to be a girl.

The report compiled by Save the Children suggested Sweden was the best place for young females to live. Niger finished at the bottom. The U.S. was rated 32nd on the 144-country list.

Not all rich countries are doing as well as they could for their girls, according to the non-governmental organization. It singled out the U.S. in particular.

“There are things where we do not shine on the U.S. side,” said Carolyn Miles, president and CEO of Save the Children. One major example she pointed to was female representation in national government.

The rankings are based on a series of five factors the organization selected as key predictors of the ability for girls to thrive — rates of early marriage, adolescent fertility, maternal mortality, women in government and lower secondary school completion.

"The Girls’ Opportunity Index provides a snapshot of the situation of girls in countries the world over — their opportunity to control their own lives and to fulfil their potential," the report states. "While it is impossible to capture the full range of barriers that are holding girls back in life in a single index, we have sought to identify issues that provide insights into the some of the most extreme violations of girls’ rights, which stem from deeply entrenched discriminatory norms as well as from economic and political barriers."

The U.S. was hurt by relatively high rates of teenage pregnancy and maternal mortality compared to other countries in the same income bracket.

Women hold 19.4 percent of the 535 seats in Congress, according to the Center for American Women and Politics. In Sweden, by contrast, women make up 44 percent of the lawmakers in parliament, the European Institute for Gender Equality has found.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Save the Children’s report comes weeks before the U.S. could elect its first female president.

But that outcome alone would not improve America's score on the organization’s Girls’ Opportunity Index, said Miles. To do that, she said, women would have to occupy more seats across all levels of government.

“In many countries, women who make it into those high levels of government act as role models and incentivize girls to enter into public service,” Miles said. “It’s going to have to be more than Hillary Clinton getting elected.”

Republican presidential nominee Donald Trump looks at Democratic rival Hillary Clinton during the debate at Washington University in St. Louis on Sunday. SAUL LOEB / AFP - Getty Images

She did add, however, that a woman in the White House “would be good for getting attention to policies that benefit women and girls.”

In addition to its low levels of women in government, the U.S. also performs poorly next to other wealthy countries when looking at rates of teenage births and maternal mortality — both of which are higher among women of color, Miles said.

Though teenage birth rates have been falling in recent years, there are still about 24 births per 1,000 women between the ages of 15 and 19, according to data compiled by the World Bank. Sweden sees just 6 births per 1,000 women in the same age range, the data found.

Maternal mortality rates similarly show the U.S. coming up short. There were 14 deaths of women in the U.S. per 100,000 live births in 2015, according to the World Bank’s data, up from 12 per 100,000 in 1990. Meanwhile, there were four deaths in Sweden per 100,000 live births in 2015, down from eight in 1990.

Based on the data Save the Children used in its evaluation, the U.S. falls behind countries with a history of violent conflict (Algeria, ranked 31), authoritarian regimes (Kazakhstan, ranked 30), economic strife (Greece, ranked 26), and direct action against women’s rights — such as Poland, number 22, where tens of thousands of women took to the streets last week in protest of a near-total abortion ban. (Poland’s ruling Law and Justice part subsequently withdrew its support of the draft proposals.)

For those reasons, Miles said she expects there to be some pushback against America's position in Save the Children’s ranking. But it’s a conversation she said she welcomes.

“Part of the challenge in the U.S. is that we have such inequality gaps, and so I think the numbers are what the numbers are,” said Miles. She admitted even she was surprised to see where the U.S. fell compared to some other countries, initially thinking to herself: “Can that be?”

All 10 countries at the bottom of Save the Children’s ranking are in Africa, where child marriage remains a widespread problem.

In Niger, the worst country for girls on the organization’s list, 76 percent of women are married before age 18, according to the report.

Some, like 15-year-old Salaha, who wished to only be identified by her first name, are lucky. When a stranger asked her for her hand in marriage two years ago, she refused, afraid of needing a C-section during childbirth like many of her peers.

Her parents were supportive and allowed her to stay in school, she told NBC News by phone, via an interpreter. But she wants the international community to know that other girls in her country don’t get the same opportunity.

“She wants parents and people to be advised to stop the practice of early marriage,” Salaha’s interpreter said. “She wishes all the girls of her age could go to school and become teachers or another model of success in their communities.”