next available customer serial No

Does anybody can tell me how to get next available customer serial No ?

I found the way.