Corrected C++ line count.
Added (incorrect) C# implementation.
Fixed C# bug due to incorrect comparison.