Burunduk, from the sources I've checked, there were 1,182 Go145 (all varients) produced in Germany by Gotha, Ago, Focke-Wulf and BFW. That number doesn't include the prototype aircraft constructed before it went into production.
As far as the Spanish (CASA 1145-L) and Turkish lisence built aircraft, I think that's where you're getting the 10,000 figure, since they were produced and used long after WWII came to a close and that number would be seperate from the German built aircraft.
One good resource is the book titled "German aircraft of the Second World War: including helicopters and missiles" (by Antony L. Kay, John Richard Smith, Eddie J. Creek).