Added functionality for Element counting

fixes https://github.com/Codeception/Codeception/issues/662