# phpman > perldoc > WWW::Search::Null::Count

## NAME
    [WWW::Search::Null::Count](https://www.chedong.com/phpMan.php/perldoc/WWW%3A%3ASearch%3A%3ANull%3A%3ACount/markdown) - class for testing [WWW::Search](https://www.chedong.com/phpMan.php/perldoc/WWW%3A%3ASearch/markdown) clients

## SYNOPSIS
      use [WWW::Search](https://www.chedong.com/phpMan.php/perldoc/WWW%3A%3ASearch/markdown);
      my $iCount = 4;
      my $oSearch = new [WWW::Search](https://www.chedong.com/phpMan.php/perldoc/WWW%3A%3ASearch/markdown)('[Null::Count](https://www.chedong.com/phpMan.php/perldoc/Null%3A%3ACount/markdown)',
                                    '_null_count' => $iCount,
                                   );
      $oSearch->native_query('Makes no difference what you search for...');
      my @aoResults = $oSearch->results;
      # ...You get $iCount results.

## DESCRIPTION
    This class is a specialization of [WWW::Search](https://www.chedong.com/phpMan.php/perldoc/WWW%3A%3ASearch/markdown) that returns some hits, but no error message. The
    number of hits returned can be controlled by adding a '_null_count' hash entry onto the call to
    [WWW::Search::new](https://www.chedong.com/phpMan.php/perldoc/WWW%3A%3ASearch%3A%3Anew/markdown)(). The default is 5.

    This module might be useful for testing a client program without actually being connected to any
    particular search engine.

## AUTHOR
    Martin 'Kingpin' Thurn, "mthurn at cpan.org", <<http://tinyurl.com/nn67z>>.

