In 2014, there were 39,566 live births in Croatia, comprising 20,374 male and 19,192 female children. Virtually all of those were performed in medical facilities; only 19 births occurred elsewhere. Out of the total number, 32,677 children were born in wedlock or within 300 days after the end of the marriage, and the average age of mothers at the birth of their first child was 28.4 years. General fertility rate, i.e. number of births per 1,000 women aged 15–49 is 42.9, with the age specific rate peaking at 101.0 per million for women aged 25–29. In 2009, 52,414 persons died in Croatia, 48.5% of whom died in medical facilities and 90.0% of whom were receiving medical treatment at the time. Cardiovascular disease and cancer were the primary causes of death in the country, with 26,235 and 13,280 deaths respectively. In the same year, there were 2,986 violent deaths, including 2,121 due to accidents. The latter figure includes 616 deaths in traffic accidents. In 2014, the birth rate was 9.3 per mille, exceeded by the mortality rate of 12.0 per mille. The infant mortality rate was 5.0 per mille in 2014. In terms of age structure, the population of Croatia is dominated by the 15–64 year older segment (68.1%), while the size of the population younger than 15 and older than 64 is relatively small (15.1% and 16.9% respectively). The median age of the population is 41.4. The sex ratio of the population is 1.06 males per 1 female at birth and up to 14 years of age, and 0.99 males per 1 female between the ages of 15 and 64. But at ages over 64 the ratio is 0.64 males per 1 female. The ratio for the total population is 0.93 males per 1 female.