GetSelectedRows and CountSelectedRows added

This is an unresolved merge conflict.  Please fix.