//link count

int linkCount = 0;
for (int i = 4; i <tweetlength - 2; i++){
if (tweet.substring(i-4,i) == "http" && tweet.charAt(i) == ':' &&...