Add sphia_count

Closes #11