I got answer and I'm sharing here so, maybe helps other also.
The Messaging feature was completely removed in Kentico 12, so it is not even possible to send or receive messages any more using this feature(therefore there is no way to get the number of unread messages).