Question: How many gays were in concentration camps?
About the article "The Holocaust", section "Homosexuals".

Candidate passages:
According to Moshe Lifshitz, the Nazi camps divided as follows:  Hostage camps: camps where hostages were held and killed as reprisals.
Labor camps: concentration camps where interned inmates had to do hard physical labor under inhumane conditions and cruel treatment.
Some of these camps were sub-camps of bigger camps, or "operational camps", established for a temporary need.
POW camps: concentration camps where prisoners of war were held after capture.
POWs were usually soon assigned to labor camps.
Camps for rehabilitation and re-education of Poles: camps where the intelligentsia of the ethnic Poles were held, and "re-educated" according to Nazi values as slaves.
Transit and collection camps: camps where inmates were collected and routed to main camps, or temporarily held ("Durchgangslager" or "Dulag").
Extermination camps: These camps differed from the rest, since not all of them were also concentration camps.
Although none of the categories is independent, and many camps could be classified as a mixture of several of the above, and all camps had some of the elements of an extermination camp, systematic extermination of new-arrivals occurred in very specific camps.
Of these, four were extermination camps, where all new-arrivals were simply killed – the "Aktion Reinhard" camps (Treblinka, Sobibor and Belzec), together with Chelmno.
Two others (Auschwitz and Majdanek) were combined concentration and extermination camps.
Others like Maly Trostenets were at times classified as "minor extermination camps".  
  Heinrich Himmler issues a directive that allows homosexuals to be released from concentration camps if they underwent castration.
However, those who were released under this edict were sent to fight in the Dirlewanger Brigade, which for practical purposes was a death sentence.
As Allied forces begin liberating Nazi concentration camps, some American and British jurists conclude that the camps did not technically constitute prisons.
If a gay man had served part of a prison sentence for violating Paragraph 175, he could be returned to prison to serve the remainder of his sentence.
It is unknown how many men were returned to prison.  
The village arose in 1955 by separation from Hodejov.
During Hungarian occupation in WWII, many inhabitants were deported to concentration camps. 
Estimates vary widely as to the number of gay men imprisoned in concentration camps during the Holocaust, ranging from 5,000 to 15,000, many of whom died.
In addition, records as to the specific reasons for internment are non-existent in many areas, making it hard to put an exact number on exactly how many gay men perished in death camps.
See "pink triangle".
Gay men suffered unusually cruel treatment in the concentration camps.
They faced persecution not only from German soldiers but also from other prisoners, and many gay men were beaten to death.
Additionally, gay men in forced labor camps routinely received more grueling and dangerous work assignments than other non-Jewish inmates, under the policy of "Extermination Through Work".
SS soldiers also were known to use gay men for target practice, aiming their weapons at the pink triangles their human targets were forced to wear .
The harsh treatment can be attributed to the view of the SS guards toward gay men, as well as to the homophobic attitudes present in German society at large.
The marginalization of gay men in Germany was reflected in the camps.
Many died from beatings, some of them inflicted by other prisoners.
Nazi doctors often used gay men for scientific experiments in an attempt to locate a "gay gene" to "cure" any future Aryan children who were gay.
Experiences such as these can account for the high death rate of gay men in the camps as compared to the other "anti-social groups."
A study by Rüdiger Lautmann found that 60% of gay men in concentration camps died, as compared to 41% for political prisoners and 35% for Jehovah's Witnesses.
The study also shows that survival rates for gay men were slightly higher for internees from the middle and upper classes and for married bisexual men and those with children. 
The Nazi concentration camps ("Konzentrationslager", KL or KZ) were designed to exploit the labor of prisoners rather than to exterminate them, although the majority of prisoners eventually died due to disease and exhaustion, starvation diet, and regular executions.
In Germany before 1939, concentration camps housed mainly Jews and political enemies of the Nazi regime.
Many concentration camps set up in German occupied Poland served as transit points to the extermination camps, and partly so that the Jews could be worked to death.
This policy was called "Vernichtung durch Arbeit" (annihilation through work).
Large numbers of non-Jewish Poles were also imprisoned in these camps, as were various prisoners from other countries.
For example, at the beginning Stutthof labor camp near Gdańsk was set up for the extermination of Polish elites.
The major concentration camps in occupied Poland were: Warschau (in Warsaw) Kraków-Płaszów (made famous in the book and film "Schindler's List") Soldau (now Działdowo) Another camp, Gross-Rosen (now Rogoźnica) in German Silesia (now part of Poland), was surrounded with a number of satellite camps ("Aussenlager") to which prisoners were sent to work on various German state projects.
There were also concentration camps at: Budzyń, Janowska, Poniatowa, Skarżysko-Kamienna, Starachowice, and Trawniki.