Update Result.php

Changed method current() with configuration option formatting array keys and changed count() method