Add sphia_count

Closes #11
Merge pull request #20 from sphia/add-sphia-count

Add sphia_count