Update contact count to v3

Not sure whether it's a good idea to change the original function... What do you think?