pulled out countInputs to lib package object.
made closure able to run on its own again.
Merge branch 'master' of https://github.com/stefanwouldgo/Bitcoin-Graph-Explorer