use Enumerable count method