fix for :count command of ghciext package