Adding some debugging output as well as changed post count lookup to found posts.