I have 28 games in total but on my steam profile it shows that i only have 5. I have already gotten the badge for 5games but shouldn't it show the 25 games badge? All help is appreciated:) thanks
Non-Steam, DLC and Free to play games do not count towards the game count on your profile, this could be why you are seeing a difference between games in your library and the number of games shown on your profile.
One example is Call of Duty which has a single and multiplayer game listed in the library but will only add one to your games count.