add filter method with total entities number #3; some tests

@return what?