Create log-find-count

Pushing the second and third patch.