Bug fix: Use count() instead of found() (Issue #287)