Fixed count bug which was introduced in version 1.4