Added count method to the dqb module