Updated the partial counter code a little. Fixed how "on fork" it doesn't reset the counter.
Added support for partial count through the library.