Add count specs function.