Count and GetElementAt functions added to unify crazy c# api