Changed countmat