Counting uppercase and lowercase characters

Hi,

Does anyone know a way of counting uppercase and lowercase characters in a string within BASIC coding?

Regards,

Phil.