Enhanced count() method to accept and use filter statements and prameter
array.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>