Implemented Count inversions in C#.