count() public method

Get count from all modules.
public count ( ) : integer
return integer
 /** @test */
 public function it_counts_all_modules()
 {
     $this->repository->addLocation(__DIR__ . '/stubs');
     $this->assertEquals(1, $this->repository->count());
 }