Joining two select statements
You can use the 2nd query as a subquery in this way:

SELECT 
    usr1.name,
    posts.id,
    text_posts.text,
    posts.location
    posts.createdate
    COUNT(*) AS total,
    (SELECT 
        COUNT(user_id) 
    FROM 
        follows 
    INNER JOIN 
        users usr2 ON usr2.id = follows.user_id
    WHERE 
        usr2.id = usr1.id  
    GROUP BY 
        user_id) as totalFriends 
FROM
    posts
INNER JOIN 
    likes ON likes.posts_id = posts.id
INNER JOIN 
    users usr1 ON photos.user_id = usr1.id
INNER JOIN 
    text_posts ON text_post.posts_id = posts.id
GROUP BY 
    posts.id
ORDER BY 
    total DESC