Fixed UniqueCount - counts should be '1' based.
Added unit tests for the UniqueCount sub assembly.