How to count the total number of cores in apache solr 3.5?
You can find it in your server where solr is hosted in /admin, you will see every core or if you've access to the server you will find it in.

/var/lib/solr/cores/ each folder can be a core.