Merged the count_selected_spins() function into count_spins().
Authored by: bugman 2008-09-24
Parent: [r7259]
Child: [r7261]