Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE table_26151 ( "Copper Age" text, "Chalcolithic (4500 BC - 3300 BC)" text, "Early Chalcolithic" text, "4500 BC - 4000 BC" text, "Ubaid period in Mesopotamia" text )

### Question ###
When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there?

### Accurate SQL ###

SELECT COUNT("Early Chalcolithic") FROM table_26151 WHERE "Ubaid period in Mesopotamia" = 'Second Intermediate Period of Egypt'