If you want to store the result into empty table:
INSERT INTO Users
SELECT userid, count(*)
FROM ratings
GROUP BY userid
aquilax
Junior Poster in Training
73 posts since Jul 2010
Reputation Points: 18
Solved Threads: 11
Skill Endorsements: 0
Creating view is a better option for that.
debasisdas
Posting Genius
6,968 posts since Feb 2007
Reputation Points: 722
Solved Threads: 457
Skill Endorsements: 20