Mini Minds Hub · Free printable

Crack the Code by Counting: Free Printable Worksheet for Year 9

  • ForYear 9
  • StageKey Stage 3
  • CostFree
  • FormatPrintable PDF

In Crack the Code by Counting, Year 9 pupils (ages 13 to 14) tally the letters in an intercepted message, use the pattern to spot clues, then decode a shift cipher. It suits pupils who enjoy puzzles and want a screen free way to practise computational thinking.

Before pupils touch the real message, model the table on one short line of text you make up. Tally each letter once, then write the total. The usual slip is missing a letter or counting one twice, so ask pupils to tick each letter off as they tally it.

What is on the sheet

Page 1 has a table with three columns: Letter, Tally and Total. Pupils fill it in by counting the letters in the intercepted message. They then answer numbered questions, with space for answers and lines for writing. The counts give the clues needed to work out how the message was changed. Once pupils know that, they can decode it. The sheet rewards careful counting and clear reasoning, not guessing.

  • Letter
  • Tally
  • Total

A short decoding example

A word was coded by moving each letter 2 places forward in the alphabet. The coded word is ECV. What was the word?

This is a short practice example to show the method. The sheet has its own message to crack.

Method 1: two alphabet rows
  1. Write A to Z along the top of a page.
  2. Underneath, write the alphabet again so that C sits under A.
  3. Find E in the bottom row. The letter above it is C.
  4. Do the same for C and V. They give A and T.
Method 2: count back
  1. Take the first coded letter, E. Count back 2 places: D, C.
  2. Take the next letter, C. Count back 2 places: B, A.
  3. Take the last letter, V. Count back 2 places: U, T.
CAT

Why counting letters can break a code

A shift cipher hides a message by swapping every letter for one a fixed number of places along the alphabet. It looks like nonsense, but it keeps a weakness. The same plain letter always becomes the same coded letter. So the pattern of the original message is still there, just disguised under different letters.

In English, some letters turn up far more often than others. If you tally the letters in a coded message, the busiest coded letters give clues about what they might stand for. Following the same steps every time, tally then compare then test, is an algorithm. That is why this task fits computing as well as puzzle solving.

Code facts

  • The study of secret writing and how to break it is called cryptography.
  • A shift cipher is also called a Caesar cipher. Julius Caesar is said to have used a shift cipher to send private messages.
  • Breaking a code by counting how often each letter appears is called frequency analysis.
  • In a 26 letter alphabet, only 25 different shifts actually change the message, so a shift cipher is quite easy to crack.
  • Modern computers use far more complex codes to keep online messages and payments private.

Skills and curriculum link

  • Counting frequencies
  • Spotting patterns
  • Decoding a shift cipher
  • Following an algorithm
  • Reasoning from evidence

Ideas to help you support the task

  • Tally marksTally marks are usually drawn in groups of five, with the fifth mark crossing the other four. Groups make long counts quicker to read and check.
  • Same letter, same codeIn a shift cipher, a plain letter is always swapped for the same coded letter. That is why the pattern of the original message survives.
  • Alphabet orderPupils need to move forwards and backwards along the alphabet. A written strip stops them losing their place.
  • Test, then checkA guess about the shift is only useful if it is tested. Decode a few letters and ask whether the result looks like real words.

Key words

  • CipherA method of changing letters so that a message is hidden.
  • Shift cipherA cipher where every letter is replaced by one a fixed number of places along the alphabet.
  • FrequencyHow often something happens or appears.
  • TallyA mark used to count, usually drawn in groups of five.
  • AlgorithmA set of step by step instructions for solving a problem.
  • InterceptedCaught on the way, before it reaches the person it was meant for.

How to use it

  1. Print both pages. Page 1 is for the pupil. Keep page 2 for the grown up, as it has the notes and answers.
  2. Look at the table together. Ask what each column is for before anyone starts counting.
  3. Pupils tally the letters first, then fill in the totals. Remind them to tick off each letter as they count it.
  4. Use the counts and the clues to decode the message, then answer the numbered questions in full.
  5. Check against page 2. Ask, "How did you know?" and discuss how counting is an algorithm anyone can follow step by step.

Help, stretch and game ideas

If it feels too hard

Let pupils write the alphabet on a strip of paper and slide it along to find each letter. Test the shift on just two or three letters first. If the result looks like nonsense, try again before decoding the whole message.

To stretch confident children

Write a short message of your own using a shift cipher. Swap with a partner and see if they can crack it using only letter counts. Then explain why a longer message is easier to crack than a very short one.

Make it a game

Work in pairs as spies. One writes a coded message and the other must crack it using only letter counts. Swap roles and see who decodes fastest. Agree a rule first, such as a minimum message length.

Mistakes to watch for

Watch forA pupil slides the alphabet the wrong way and gets nonsense.

Try thisCheck one letter by sliding the other way. Ask whether the result looks like real English, then correct the direction.

Watch forThe tally has missed or doubled letters, so the totals look odd.

Try thisTick off each letter as it is counted. Group tally marks in fives, and check that all the totals add up to the length of the message.

Watch forA pupil gets stuck at the start or end of the alphabet.

Try thisRemind them the alphabet wraps round like a circle. After Z comes A again, and before A comes Z.

Talk about it

  • Why does a shift cipher still show a pattern when the letters are changed?
  • Which letters did you count most often, and what might that tell you?
  • How is following the counting steps like an algorithm?
  • Would a longer message be easier or harder to crack? Why?
  • How could someone make a cipher harder to break?
  • Where do people use codes to keep information private today?

Take it off the page

Secret note

Write a short note to a friend or relative using a shift cipher. Leave the shift as a clue they must work out.

Cipher strip

Make two alphabet strips from card and slide one along the other to encode and decode. An adult should do any cutting.

Letter hunt

Choose a paragraph from a book and tally its letters on paper. Compare your results with someone else who chose a different paragraph.

Who it is for

Parents

Read the sheet first, then sit with your teenager for the first go and let them lead. Ask them to explain each clue in their own words. Check with page 2 afterwards.

Teachers

Use it as a starter, plenary, early finisher task, homework or table activity. It needs no preparation beyond printing. Page 2 has support and stretch ideas for mixed ability groups, and the discussion of algorithms links to your computing planning.

Home educators

This fits well alongside other computing and maths work in a home education plan. Pairing it with a discussion of how codes protect information today turns it into a short project. It is easy to repeat for revision.

Where this skill fits

Before this sheet, pupils will have met tallying, alphabetical order and the idea that an algorithm is a precise set of steps. Confident counting and careful reading of a table are the main things to have in place.

After it, pupils can look at other ciphers, how data is represented in computers and how encryption protects information online. Cracking a simple cipher shows why stronger methods are needed.

Questions parents and teachers ask

What age is Crack the Code by Counting for?

It is written for Year 9 (ages 13 to 14) in Key Stage 3. Older or younger pupils who enjoy puzzles can try it too, with support or extra challenge from page 2.

What do pupils practise?

Pupils practise counting letter frequencies, spotting patterns and decoding a shift cipher. They also see that counting steps can be written as an algorithm that anyone can follow.

Do pupils need a computer?

No. It is a screen free computing activity that needs only paper and a pencil. It works well as a starter, homework task or quiet activity at home.

What if a pupil finds it hard?

Give them an alphabet strip to slide along, as suggested on page 2. Let them test the shift on two or three letters before decoding everything. Praise careful thinking, not only correct answers.

Does the sheet include answers?

Yes. Page 2 is for the grown up and has the answers, along with notes on how to use the sheet, help for children who find it hard and a stretch idea.

Can teachers use it in class?

Yes. It works as a starter, plenary, early finisher task, supply resource, homework or table activity. It needs no preparation beyond printing, and it links to the Key Stage 3 computing focus on algorithms.

Is it a replacement for classroom teaching?

No. It is a practice and play activity that supports learning in class. It works best alongside teaching on algorithms and computational thinking, not instead of it.

Preview the full PDF

Made by Jaques of London, making games for families since 1795. A printable supports classroom learning and does not replace a teacher.