Add outputs count
Merge pull request #5 from ianks/outputs

Add outputs count and rename unique state