It depends on the depository.
A CDSL Demat account number is a 16-digit BO ID. An NSDL account number consists of an 8-character DP ID and an 8-digit Client ID.