Added mysql result count method.

Upgraded iterator interface overloader.