fixed error in counting submissions