count x (y:xs) | x == y    = 1 + count x xs
               | otherwise = count x xs
count x (y:xs) | x == y    = 1 + count x xs
               | otherwise = count x xs
count x (y:xs) | x == y    = 1 + count x xs
               | otherwise = count x xs