Fix condition when there isn't any contact associated with phone number
Prepare a container for message count