My simple script won't work

My simple script won't work

This simple script wont work. It's supposed to simply select an element and alert to how many are selected. I can't see why such a simple script is not working....it keeps saying 0.

js code:
  1. $(document).ready(function() {alert($('p A:link').length + ' elements');});
html code:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. <link rel ="Stylesheet" href="styles/mycss.css" type="text/css"/>
  7. </head>

  8. <body>
  9. <script type="text/javascript" src="scripts/jquery-1.4.2.js"></script>
  10. <script type="text/javascript" src="scripts/myjs.js"></script>

  11. <p>
  12. <a href="http://google.com"> The compound style here </a> </p>

  13. <p id = "yeah">
  14. <a href="http://google.com"> The compound style here2 </a> </p>



  15. </body>
  16. </html>
css:

  1. @charset "utf-8";
  2. /* CSS Document */

  3. .one {
  4. font-size: 16px;
  5. font-style: italic;
  6. color: #0C9;
  7. }


  8. p A:link {
  9. font-size: 36px;
  10. color: #F00;
  11. text-decoration:none;
  12. }