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_name_17 (total VARCHAR, affiliation VARCHAR, life_peers VARCHAR, hereditary_peers VARCHAR, lords_spiritual VARCHAR)

### Question ###
Which Total has a Hereditary peer of –, and a Lords spiritual of –, and a Life peers of 2, and an Affiliation of plaid cymru?

### Accurate SQL ###

SELECT COUNT(total) FROM table_name_17 WHERE hereditary_peers = "–" AND lords_spiritual = "–" AND life_peers = "2" AND affiliation = "plaid cymru"