Implementation of a linear time randomized subgraph counting algorithm